<?php
$this->load->helper('form');
$attributes = array('onsubmit' => 'branchEditRequest('.$branch_id.'); return false;');
echo form_open('#',$attributes);
?>
<table>
	<tr>
		<td class='form-field'> <strong> Name :</strong></td>
		<td><?php
		$data = array(
		              'name'        => 'name',
		              'id'          => 'name',
		              'maxlength'   => '10',
		              'size'        => '50',
		              'value'		=> $name
		            );
		echo form_input($data);
		?>
		</td>
	</tr>
	
	<tr>
		<td class='form-field'> <strong> Description :</strong></td>
		<td><?php
		$data = array(
		              'name'        => 'description',
		              'id'          => 'description',
		              'rows'		=> '10',
		              'cols'        => '30',
		              'value'		=> $description
		            );
		echo form_textarea($data);
		?>
		</td>
	</tr>
	<tr>
		<td id="dep" colspan=2>
			<div id="dep-list">
				<?php $this->load->view('branch/relations/list',$rellist); ?>
			</div>
			<div id="dep-add">
				<?php $this->load->view('branch/relations/add',$relnew); ?>
			</div>
		<td>
	</tr>
	<tr>
		<td class='form-field'> <strong> Status :</strong></td>
		<td><?php
		$options = array('active' => 'active', 'deprecated' => 'deprecated');
		echo form_dropdown('status', $options, 'active', 'id="status"');
		?>
		</td>
	</tr>
		
	<tr>
		<td class='form-field'>
			<?php echo form_submit('submit', 'Send'); ?>
		</td>
	</tr>
</table>
<?php
echo form_close('');
?>
